<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
function ouputcsv()
{
	$("#if_csv").val(1);
	$("#search").submit();
}


</script>
<title>出货记录报表</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">价格修改日志</h1>
  <div class="menulist">
    <ul class="profile_summary">
       <li {{if $status==""}} class="current"{{/if}}> <a href="/factory/ajaxbutton?op=costpricelog"><span>成本价修改日志</span></a></li>
      
       </ul>
  </div>
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
  <div id="basicform" class="subcontent"> 
    <!--搜索栏-->
    <div>
      <div style="clear: both"></div>
      <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
    </div>
    <form class="stdform stdform2" method="get" id="search" action="/factory/ajaxbutton?op=costpricelog">
      <input type='hidden' name='if_csv' id='if_csv'>
      <input type='hidden' name='op' id='costpricelog' value="costpricelog">
      <div class="tableoptions">
       
         商品编号: <input type="text" name="other" id="other" class="width200" value="{{$other}}" placeholder="" />
       <select name="fID" id="fID" class="selection " style="width:100px;">
       				 <option value="1" {{if $fID ==1}} selected{{/if}}>工厂</option>
        			<option value="2" {{if $fID ==2}} selected{{/if}}>工厂1</option>
        			<option value="3" {{if $fID ==3}} selected{{/if}}>工厂2</option>
        			<option value="4" {{if $fID ==4}} selected{{/if}}>外采购</option>
                </select>
         
        <button class="btn btn-primary" id="searchbtn">Search</button>
        {{if $managers || in_array('104',$showpower)}}
        &nbsp;&nbsp;&nbsp;&nbsp;<button onClick="ouputcsv()"  class="stdbtn btn_black">导出</button>
        {{/if}} </div>
    </form>
    <!--搜索栏结束-->
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
      <thead>
        <tr class="lbbt">
        
          <td bgcolor="#FEFFF1">商品编号</td>
          
   		<td bgcolor="#FEFFF1">商品名称</td>
         <td bgcolor="#FEFFF1">原价格</td>
          <td bgcolor="#FEFFF1">修改后价格</td>
          <td bgcolor="#FEFFF1" width="30%">备注</td>
          <td bgcolor="#FEFFF1">当前成本价</td>
          <td bgcolor="#FEFFF1">修改时间</td>
          <td bgcolor="#FEFFF1">操作人</td>
        </tr>
      </thead>
      <tbody >
      
      {{foreach from=$orderlist item=li key=key}}
      <tr>
       
        <td   style="position:relative;"><a href="/product/showproduct?goods_id={{$li.goods_id}}" target="_blank"><font color="#6666FF">{{$li.goods_sku}}</font></a></td>
        <td valign="middle"  style="width: 200px; overflow:hidden;white-space:nowrap; text-overflow:ellipsis;" >{{$li.goods_name}}</td>
        <td valign="middle" >{{$li.old_data}}</td>
        <td  class="cz">{{$li.new_data}}</td>
        <td  class="cz">{{$li.content}}</td>
         <td  class="cz">{{$li.g_costprice}}</td>
        <td  class="cz">{{$li.updatetime}}</td>
        <td>
        {{$li.createUser}}
        </td>
      </tr>
      {{/foreach}}
     
        </tbody>
      
    </table>
    <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
  </div>
</div>
</body>
</html>